package com.smallbug.longman.bean;

import java.util.ArrayList;
import java.util.Iterator;

public class Entry {
	public String EntryId;
	public String EntryIdmId;
	public HEAD Head;
	public ArrayList<Sense> Senses;

	public String getEntryId() {
		return EntryId;
	}

	public void setEntryId(String entryId) {
		EntryId = entryId;
	}

	public String getEntryIdmId() {
		return EntryIdmId;
	}

	public void setEntryIdmId(String entryIdmId) {
		EntryIdmId = entryIdmId;
	}

	public HEAD getHead() {
		return Head;
	}

	public void setHead(HEAD head) {
		Head = head;
	}

	public ArrayList<Sense> getSenses() {
		return Senses;
	}

	public void setSenses(ArrayList<Sense> senses) {
		Senses = senses;
	}

	public void print()
	{
		Head.print();	
		
		Sense sense = null;
		if(Senses != null)
		{
			Iterator iter = Senses.iterator();
			while (iter.hasNext()) {
				sense = (Sense)iter.next();
				sense.print();
			}
			
		}

	}

	@Override
	public String toString() {
		return "Entry{" +
				"EntryId='" + EntryId + '\'' +
				", EntryIdmId='" + EntryIdmId + '\'' +
				", Head=" + Head +
				", Senses=" + Senses +
				'}';
	}
}
